export class Field<T = unknown> extends Array<(T | undefined)[]> {
    constructor(size: number) {
        super(size);

        for(let idx = 0; idx < this.length; idx++) {
            this[idx] = [...new Array(size)];
        }
    };
};

export default class Game {
    private field: Field;

    constructor(fieldSize: number) {
        this.field = new Field(fieldSize);
    };

    public start() {
        const loop = () => {
            //
            requestAnimationFrame(loop);
        };

        loop();
    };
};
